<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?= SITE_TITLE . ' :: ' . $this->page_title ?></title>
        <meta name='description' content='<?= $this->page_description ?>' />
        <meta name='keywords' content='<?= $this->page_keywords ?>' />
        <link rel="icon" type="image/png" href="<?= SITE_URL . '/templates/site/favicon.png' ?>" />
        <?php $this->headScript()->appendFile('/js/jquery.js'); ?>
        <?php $this->headScript()->appendFile('/js/jquery.dropdown.js'); ?>
        <?php $this->headScript()->appendFile('/js/jquery.form.js'); ?>
        <?php $this->headScript()->appendFile('/js/pngfix.js'); ?>
        <?php $this->headScript()->appendFile('/js/placeholder.js'); ?>
        <?php $this->headScript()->appendFile('/js/jquery.mousewheel-3.0.4.pack.js'); ?>
        <?php $this->headScript()->appendFile('/js/jquery.fancybox-1.3.4.pack.js'); ?>
        <?= $this->headScript() ?>
        <?php $this->headLink()->appendStylesheet(SITE_URL . '/templates/site/reset.css'); ?>
        <?php $this->headLink()->appendStylesheet(SITE_URL . '/templates/site/style.css'); ?>
        <?php $this->headLink()->appendStylesheet(SITE_URL . '/templates/site/fancybox/style.css'); ?>
        <?= $this->headLink() ?>
        <script type="text/javascript">
            $(document).ready(function(){
                $(document).pngFix();
            });
        </script>
        <?php echo $this->layout()->block[4] ?>
    </head>
    <body>
        <div class="page">
            <div class="container_12">
                <div class="header">
                    <div class="logotype"><a href="<?= SITE_URL ?>/" alt="<?php echo SITE_TITLE ?>" title="<?php echo SITE_TITLE ?>">&nbsp;</a></div>
                    <div class="photoblock">
                    </div>
                    <div class="clear"></div>
                    <?php
                    $model = new PageModel();
                    echo $model->showMenu(0, 0, 2, 'dropdown');
                    ?>
                    <div class="clear"></div>
                    <div class="post_menu"></div>
                </div>
                <div class="clear">&nbsp;</div>
                <div class="content">
                    <?php if (strtok($_SERVER["REQUEST_URI"], '/') <> '') { ?>
                        <?php echo $model->Breadcrumbs('breadcrumbs'); ?>
                    <?php } ?>
                    <?php echo $this->layout()->block[0] ?>
                    <?php echo $this->layout()->block[2] ?>&nbsp;
                </div>
                <div class="sidebar">
                    <?php echo $this->layout()->block[1] ?>
                    &nbsp;
                </div>
                <div class="clear"></div>
            </div>
            <div class="footer">
                <div class="copyline">Powered by <a href="http://www.unlabeled.ru">Unlabeled CMS</a></div>
                <div class="search_block">
                    <form action="/search"  accept-charset="UTF-8" method="post" id="search-form">
                        <div class="form-item">
                            <input type="text" maxlength="60" name="search" id="search_string" size="15" value="" class="form-text required" />
                        </div>
                        <div class="form-item-submit">
                            <input type="submit" name="submit" value="<?php echo $this->t->_('Search') ?>"  class="form-submit" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="site_slogan"><?php echo SITE_SLOGAN ?></div>
    </body>
</html>

